var express = require('express');
const gameController = require('../controllers/gameController');
var HomeRouter = express.Router();//创建路由对象

const multer = require("multer")

// 修改头像
HomeRouter.post("/changeInf", upload.single("file"), gameController.changeInf);
HomeRouter.post("/gameLog", gameController.gameLog);


HomeRouter.get("/userInf", gameController.userInf);
HomeRouter.get("/notice", gameController.notice);
HomeRouter.get("/gameLog", gameController.getGameLog);


module.exports = HomeRouter;